export const fields: {
  label: string;
  prop: string;
  type?: string;
  import?: {
    required?: boolean;
  };
  [key: string]: any;
}[] = [
  {
    label: "日志编号",
    prop: "no",
    import: {
      required: true,
    },
  },
  {
    label: "工作内容",
    prop: "content",
  },
  {
    label: "需要的支持、风险、问题",
    prop: "other",
  },
  {
    label: "备注",
    prop: "desc",
  },
  {
    label: "计划开始时间",
    prop: "plannedStartTime",
    type: "datetime",
    format: "yyyy-MM-dd HH:mm",
    valueFormat: "yyyy-MM-dd HH:mm:ss",
  },
  {
    label: "计划结束时间",
    prop: "plannedEndTime",
    type: "datetime",
    format: "yyyy-MM-dd HH:mm",
    valueFormat: "yyyy-MM-dd HH:mm:ss",
  },
  {
    label: "完成进度",
    prop: "completionDegree",
  },
  {
    label: "预计工时(h)",
    prop: "plannedTime",
    type: "number",
    min: 0,
    max: 24,
  },
  {
    label: "实际工时(h)",
    prop: "actualTime",
    type: "number",
    min: 0,
    max: 24,
  },
  {
    label: "关联项目",
    prop: "project",
  },
  {
    label: "关联需求",
    prop: "demand",
  },
  {
    label: "创建时间",
    prop: "createdAt",
    type: "datetime",
    format: "yyyy-MM-dd HH:mm",
    valueFormat: "yyyy-MM-dd HH:mm:ss",
  },
];
